package com.example.android.kotlin

//fun main() {
//    val singer = Singer("张三", 18)
//    singer.sing()
//}
//
//class Singer(name: String, agent: Number) {
//    var name = "张三"
//    var age = 18
//    fun sing() {
//        println("I am singing")
//    }
//}

fun main() {
    var singer1 = Singer
    var singer2 = Singer
    //输出为true
    println(singer1 === singer2)
    //输出I am singing
    Singer.sing()
}

object Singer {
    var name = "张三"
    var age = 18
    fun sing() {
        println("I am singing")
    }
}